﻿<Window x:Class="SharpF2.View.UserCommentDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Components="clr-namespace:SharpF2.Components"
    xmlns:Services="clr-namespace:SharpF2.Services"
    Title="{Services:Language UserCommentReportTitle}"
    WindowStartupLocation="CenterOwner"
    Icon="../SharpF2Icon.ico"
    Height="200" Width="450"
    Background="{StaticResource MainBackgroundBrush}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBox Margin="4" 
                 Grid.Row="0" 
                 Text="{Binding UserCommentText, UpdateSourceTrigger=PropertyChanged}" 
                 FontSize="16" 
                 MaxLength="500" 
                 Height="Auto" 
                 BorderThickness="1" 
                 AcceptsReturn="True" 
                 AcceptsTab="True" 
                 TabIndex="0"
                 HorizontalAlignment="Stretch"
                 TextWrapping="Wrap"
                 VerticalScrollBarVisibility="Auto"
                 HorizontalScrollBarVisibility ="Hidden"/>
        <Grid Grid.Row="1" IsSharedSizeScope="True">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto" SharedSizeGroup="A"/>
                <ColumnDefinition Width="Auto" SharedSizeGroup="A"/>
            </Grid.ColumnDefinitions>
            <TextBlock Margin="4" Text="{Binding CharactersLeft}" FontSize="16"/>
            <Button Grid.Column="1" Margin="4" MinWidth="75" Height="Auto" Padding="10,2"
                    HorizontalAlignment="Right" VerticalAlignment="Bottom" 
                    Content="{Services:Language Cancel}"
                    IsCancel="True" IsDefault="True"/>
            <Button Grid.Column="2" Margin="4" MinWidth="75" Height="Auto" Padding="10,2"
                    HorizontalAlignment="Right" VerticalAlignment="Bottom" 
                    Components:FrameworkElementExtension.CloseCommand="{Binding SendReportCommand}"
                    Content="{Services:Language UserCommentReportSend}"/>
            </Grid>
    </Grid>
</Window>
